package com.itheima.controller;


import org.springframework.web.bind.annotation.*;


@RestController  // 等于 @Controller + @ResponseBody
public class HelloController {


    @GetMapping("/hello")  //也可以使用 @RequestMapping(value = "/hello",method = RequestMethod.GET)
    public String hello(){
        return "hello spring boot 01";
    }
}
